using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace SchoolsBI
{
    public  class xmlDocVariables
    {
        private XmlElement _xmlelement;
        private string _namexml;

        public  xmlDocVariables()
        {
        }

        public  xmlDocVariables(string name)
        {
            _namexml = name;
        }

        public string NameXml
        {
            get
            {
                return _namexml;
            }
            set
            {
                _namexml = value;
            }
        }

        public XmlElement xml()
        {
            if (_xmlelement ==null)
            {
                XmlDocument odoc = new XmlDocument();
                _xmlelement=odoc.CreateElement(_namexml);
            }
            return _xmlelement;
        }
    }
}
